import CommonApi from './common'

class MapUpdateApi extends CommonApi {
    constructor() {
        super()
        this.scope = '/quality/mapVector'
    }
    programExecution(data) {
        const path = this.resolvePath('/vectorLineProgramExecution')
        return this.post(path, data, { timeout: 120 * 1000 })
    }
    downloadData() {
        const path = this.resolvePath('/dataDownload')
        return path
    }
    downloadMapTest() {
        const path = this.resolvePath('/mapTest')
        return path
    }
    updateData(data) {
        const path = this.resolvePath('/vectorLineDataUpdate')
        return this.post(path, data)
    }

    // 10米桩数据更新
    programExecutionBy10m(data) {
        const path = this.resolvePath('/m10PileProgramExecution')
        return this.post(path, data, { timeout: 120 * 1000 })
    }
    updateDataBy10m(data) {
        const path = this.resolvePath('/m10PileDataUpdate')
        return this.post(path, data)
    }
    getElementList() {
        const path = this.resolvePath('/getImportantElementList')
        return this.post(path)
    }
}

export default MapUpdateApi
